<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>intel-ipsec-mb: chacha20_poly1305_context_data Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">intel-ipsec-mb<span id="projectnumber">&#160;v1.5</span>
   </div>
   <div id="projectbrief">Documentation of the Intel(R) IPSec Multi-Buffer library</div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('structchacha20__poly1305__context__data.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle"><div class="title">chacha20_poly1305_context_data Struct Reference</div></div>
</div><!--header-->
<div class="contents">

<p>holds Chacha20-Poly1305 operation context  
 <a href="structchacha20__poly1305__context__data.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="intel-ipsec-mb_8h_source.html">intel-ipsec-mb.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:ae12447b2fd2e9f8a6f09f443bd303887"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchacha20__poly1305__context__data.html#ae12447b2fd2e9f8a6f09f443bd303887">hash</a> [3]</td></tr>
<tr class="separator:ae12447b2fd2e9f8a6f09f443bd303887"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b5edcebc9a6bec3776daf6d13bf950c"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchacha20__poly1305__context__data.html#a7b5edcebc9a6bec3776daf6d13bf950c">aad_len</a></td></tr>
<tr class="separator:a7b5edcebc9a6bec3776daf6d13bf950c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade4568d041695b318df773787872127f"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchacha20__poly1305__context__data.html#ade4568d041695b318df773787872127f">hash_len</a></td></tr>
<tr class="separator:ade4568d041695b318df773787872127f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc74af4af99449f0b9f01338ae723c1a"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchacha20__poly1305__context__data.html#afc74af4af99449f0b9f01338ae723c1a">last_ks</a> [64]</td></tr>
<tr class="separator:afc74af4af99449f0b9f01338ae723c1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a832afc28000f27f503bce3fd04462a19"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchacha20__poly1305__context__data.html#a832afc28000f27f503bce3fd04462a19">poly_key</a> [<a class="el" href="intel-ipsec-mb_8h.html#a3260a6651abb0c37dc6558770966d582">IMB_CHACHA20_POLY1305_KEY_SIZE</a>]</td></tr>
<tr class="separator:a832afc28000f27f503bce3fd04462a19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a674f6c26aae1076e938726f18401bf6d"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchacha20__poly1305__context__data.html#a674f6c26aae1076e938726f18401bf6d">poly_scratch</a> [<a class="el" href="intel-ipsec-mb_8h.html#a603f272890d272f0bbd467ee8c632452">IMB_POLY1305_BLOCK_SIZE</a>]</td></tr>
<tr class="separator:a674f6c26aae1076e938726f18401bf6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add03511d1f95376b3ac64a7916c27368"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchacha20__poly1305__context__data.html#add03511d1f95376b3ac64a7916c27368">last_block_count</a></td></tr>
<tr class="separator:add03511d1f95376b3ac64a7916c27368"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84693b96048f6130a749b633c65e2105"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchacha20__poly1305__context__data.html#a84693b96048f6130a749b633c65e2105">remain_ks_bytes</a></td></tr>
<tr class="separator:a84693b96048f6130a749b633c65e2105"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74e971fe76c8b946e30e8f0c8cce111a"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchacha20__poly1305__context__data.html#a74e971fe76c8b946e30e8f0c8cce111a">remain_ct_bytes</a></td></tr>
<tr class="separator:a74e971fe76c8b946e30e8f0c8cce111a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a576d50687b0bc16916b01f1364fd5845"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchacha20__poly1305__context__data.html#a576d50687b0bc16916b01f1364fd5845">IV</a> [<a class="el" href="intel-ipsec-mb_8h.html#a682613e829c603f3c328f7fd6813d6ff">IMB_CHACHA20_POLY1305_IV_SIZE</a>]</td></tr>
<tr class="separator:a576d50687b0bc16916b01f1364fd5845"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>holds Chacha20-Poly1305 operation context </p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="a7b5edcebc9a6bec3776daf6d13bf950c" name="a7b5edcebc9a6bec3776daf6d13bf950c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b5edcebc9a6bec3776daf6d13bf950c">&#9670;&#160;</a></span>aad_len</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t chacha20_poly1305_context_data::aad_len</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Total AAD length </p>

</div>
</div>
<a id="ae12447b2fd2e9f8a6f09f443bd303887" name="ae12447b2fd2e9f8a6f09f443bd303887"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae12447b2fd2e9f8a6f09f443bd303887">&#9670;&#160;</a></span>hash</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t chacha20_poly1305_context_data::hash[3]</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Intermediate computation of hash value </p>

</div>
</div>
<a id="ade4568d041695b318df773787872127f" name="ade4568d041695b318df773787872127f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade4568d041695b318df773787872127f">&#9670;&#160;</a></span>hash_len</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t chacha20_poly1305_context_data::hash_len</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Total length to digest (excluding AAD) </p>

</div>
</div>
<a id="a576d50687b0bc16916b01f1364fd5845" name="a576d50687b0bc16916b01f1364fd5845"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a576d50687b0bc16916b01f1364fd5845">&#9670;&#160;</a></span>IV</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t chacha20_poly1305_context_data::IV[<a class="el" href="intel-ipsec-mb_8h.html#a682613e829c603f3c328f7fd6813d6ff">IMB_CHACHA20_POLY1305_IV_SIZE</a>]</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>IV (12 bytes) </p>

</div>
</div>
<a id="add03511d1f95376b3ac64a7916c27368" name="add03511d1f95376b3ac64a7916c27368"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add03511d1f95376b3ac64a7916c27368">&#9670;&#160;</a></span>last_block_count</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t chacha20_poly1305_context_data::last_block_count</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Last block count used in last segment </p>

</div>
</div>
<a id="afc74af4af99449f0b9f01338ae723c1a" name="afc74af4af99449f0b9f01338ae723c1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc74af4af99449f0b9f01338ae723c1a">&#9670;&#160;</a></span>last_ks</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t chacha20_poly1305_context_data::last_ks[64]</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Last 64 bytes of KS </p>

</div>
</div>
<a id="a832afc28000f27f503bce3fd04462a19" name="a832afc28000f27f503bce3fd04462a19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a832afc28000f27f503bce3fd04462a19">&#9670;&#160;</a></span>poly_key</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t chacha20_poly1305_context_data::poly_key[<a class="el" href="intel-ipsec-mb_8h.html#a3260a6651abb0c37dc6558770966d582">IMB_CHACHA20_POLY1305_KEY_SIZE</a>]</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Poly key </p>

</div>
</div>
<a id="a674f6c26aae1076e938726f18401bf6d" name="a674f6c26aae1076e938726f18401bf6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a674f6c26aae1076e938726f18401bf6d">&#9670;&#160;</a></span>poly_scratch</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t chacha20_poly1305_context_data::poly_scratch[<a class="el" href="intel-ipsec-mb_8h.html#a603f272890d272f0bbd467ee8c632452">IMB_POLY1305_BLOCK_SIZE</a>]</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Scratchpad to compute Poly on 16 bytes </p>

</div>
</div>
<a id="a74e971fe76c8b946e30e8f0c8cce111a" name="a74e971fe76c8b946e30e8f0c8cce111a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74e971fe76c8b946e30e8f0c8cce111a">&#9670;&#160;</a></span>remain_ct_bytes</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t chacha20_poly1305_context_data::remain_ct_bytes</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Amount of ciphertext bytes still to use of previous segment to authenticate (up to 16 bytes) </p>

</div>
</div>
<a id="a84693b96048f6130a749b633c65e2105" name="a84693b96048f6130a749b633c65e2105"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a84693b96048f6130a749b633c65e2105">&#9670;&#160;</a></span>remain_ks_bytes</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t chacha20_poly1305_context_data::remain_ks_bytes</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Amount of bytes still to use of keystream (up to 63 bytes) </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="intel-ipsec-mb_8h_source.html">intel-ipsec-mb.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="structchacha20__poly1305__context__data.html">chacha20_poly1305_context_data</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7 </li>
  </ul>
</div>
</body>
</html>
